package com.treasure.mall.zbqmallmanager.base.security;

import com.treasure.mall.zbq.common.ienum.auth.RoleEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

/**
 * @author allan
 * @date 2018-11-13
 */
@Setter
@Getter
public class StAuthenticationToken extends UsernamePasswordAuthenticationToken {
    private RoleEnum roleEnum;

    public StAuthenticationToken(Object principal, Object credentials, RoleEnum roleEnum) {
        super(principal, credentials);
        this.roleEnum = roleEnum;
    }
}
